package demo4;

/**
 * @program: java-generic
 * @description:  泛型接口的实现类，是一个泛型类，那么要保证
 *      实现接口的泛型类泛型标识包含泛型接口的泛型标识
 * @author: bjc
 * @create: 2021-08-15 15:20
 */
public class Pair<T,E> implements Generator<T> {

    private T key;

    private E value;

    public Pair(T key, E value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public T getKey() {
        return key;
    }

    public E getValue(){
        return value;
    }
}
